<?php	
	echo "\nIntroduce n: ";
	fscanf(STDIN, "%d\n", $n);
	
	$c = 1;
	$v = $n;
	
	for ($i = 0; $i < $n; $i++) {
		for ($j = $v; $j > 0; $j--) {
			if ($c == 1) {
				echo "+";
				$c++;
			}
			else if ($c == 2) {
				echo "-";
				$c++;
			}
			else if ($c == 3) {
				echo ".";
				$c = 1;
			}
		}
		$v--;
		echo "\n";
	}	
	
?>



